<template>
  <div id="app">
    <!-- <router-view /> -->
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive && isRouterAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive && isRouterAlive"></router-view>
  </div>
</template>

<script>
export default {
  name: "App",
    data () {
    return {
       isRouterAlive : true 
    }
  },
  methods : {
    reload () {
      this.isRouterAlive = false ;
      this.$nextTick(()=> {
        this.isRouterAlive = true ;
      })
    }
  }
};
</script>

<style>
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #1b0025;
}
html,
body {
  width: 100%;
  height: 100% !important;
  padding-top: 1px;
  min-width: 660px;
}
#app {
  width: 100%;
  height: 100% !important;
  background: #f8f8f8;
  padding: 0px 0px 0px 0px !important;
  overflow-y: scroll;
}
a {
  text-decoration: none;
}

.el-table__header-wrapper th {
  background-color: #f9f9f9 !important;
}
.el-table__fixed-header-wrapper th {
  background-color: #f9f9f9 !important;
}
.el-dialog__body {
  padding-left: 0px !important;
  padding-right: 0px !important;
}
.el-dialog--center {
  padding: 0px !important;
}
input:focus {
  outline: none;
}
[v-cloak] {
    display: none !important;
}
</style>
